using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIEvent_TextInputData_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIEvent.TextInputData);

            field = type.GetField("inputColor", flag);
            app.RegisterCLRFieldGetter(field, get_inputColor_0);
            app.RegisterCLRFieldSetter(field, set_inputColor_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_inputColor_0, AssignFromStack_inputColor_0);
            field = type.GetField("tipColor", flag);
            app.RegisterCLRFieldGetter(field, get_tipColor_1);
            app.RegisterCLRFieldSetter(field, set_tipColor_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_tipColor_1, AssignFromStack_tipColor_1);
            field = type.GetField("pointColor", flag);
            app.RegisterCLRFieldGetter(field, get_pointColor_2);
            app.RegisterCLRFieldSetter(field, set_pointColor_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_pointColor_2, AssignFromStack_pointColor_2);
            field = type.GetField("selectColor", flag);
            app.RegisterCLRFieldGetter(field, get_selectColor_3);
            app.RegisterCLRFieldSetter(field, set_selectColor_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_selectColor_3, AssignFromStack_selectColor_3);
            field = type.GetField("inputString", flag);
            app.RegisterCLRFieldGetter(field, get_inputString_4);
            app.RegisterCLRFieldSetter(field, set_inputString_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_inputString_4, AssignFromStack_inputString_4);
            field = type.GetField("tipString", flag);
            app.RegisterCLRFieldGetter(field, get_tipString_5);
            app.RegisterCLRFieldSetter(field, set_tipString_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_tipString_5, AssignFromStack_tipString_5);
            field = type.GetField("CharacterLimit", flag);
            app.RegisterCLRFieldGetter(field, get_CharacterLimit_6);
            app.RegisterCLRFieldSetter(field, set_CharacterLimit_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_CharacterLimit_6, AssignFromStack_CharacterLimit_6);
            field = type.GetField("ReadyOnly", flag);
            app.RegisterCLRFieldGetter(field, get_ReadyOnly_7);
            app.RegisterCLRFieldSetter(field, set_ReadyOnly_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_ReadyOnly_7, AssignFromStack_ReadyOnly_7);
            field = type.GetField("contentType", flag);
            app.RegisterCLRFieldGetter(field, get_contentType_8);
            app.RegisterCLRFieldSetter(field, set_contentType_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_contentType_8, AssignFromStack_contentType_8);
            field = type.GetField("lineType", flag);
            app.RegisterCLRFieldGetter(field, get_lineType_9);
            app.RegisterCLRFieldSetter(field, set_lineType_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_lineType_9, AssignFromStack_lineType_9);
            field = type.GetField("Size", flag);
            app.RegisterCLRFieldGetter(field, get_Size_10);
            app.RegisterCLRFieldSetter(field, set_Size_10);
            app.RegisterCLRFieldBinding(field, CopyToStack_Size_10, AssignFromStack_Size_10);
            field = type.GetField("ElementSize", flag);
            app.RegisterCLRFieldGetter(field, get_ElementSize_11);
            app.RegisterCLRFieldSetter(field, set_ElementSize_11);
            app.RegisterCLRFieldBinding(field, CopyToStack_ElementSize_11, AssignFromStack_ElementSize_11);

            app.RegisterCLRMemberwiseClone(type, PerformMemberwiseClone);

            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIEvent.TextInputData());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIEvent.TextInputData[s]);


        }

        static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject* ptr_of_this_method, IList<object> __mStack, ref huqiang.UIEvent.TextInputData instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch(ptr_of_this_method->ObjectType)
            {
                case ObjectTypes.Object:
                    {
                        __mStack[ptr_of_this_method->Value] = instance_of_this_method;
                    }
                    break;
                case ObjectTypes.FieldReference:
                    {
                        var ___obj = __mStack[ptr_of_this_method->Value];
                        if(___obj is ILTypeInstance)
                        {
                            ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                        }
                        else
                        {
                            var t = __domain.GetType(___obj.GetType()) as CLRType;
                            t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                        }
                    }
                    break;
                case ObjectTypes.StaticFieldReference:
                    {
                        var t = __domain.GetType(ptr_of_this_method->Value);
                        if(t is ILType)
                        {
                            ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                        }
                        else
                        {
                            ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                        }
                    }
                    break;
                 case ObjectTypes.ArrayReference:
                    {
                        var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as huqiang.UIEvent.TextInputData[];
                        instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
                    }
                    break;
            }
        }


        static object get_inputColor_0(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).inputColor;
        }

        static StackObject* CopyToStack_inputColor_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).inputColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_inputColor_0(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.inputColor = (UnityEngine.Color)v;
            o = ins;
        }

        static StackObject* AssignFromStack_inputColor_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @inputColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.inputColor = @inputColor;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_tipColor_1(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).tipColor;
        }

        static StackObject* CopyToStack_tipColor_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).tipColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_tipColor_1(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.tipColor = (UnityEngine.Color)v;
            o = ins;
        }

        static StackObject* AssignFromStack_tipColor_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @tipColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.tipColor = @tipColor;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_pointColor_2(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).pointColor;
        }

        static StackObject* CopyToStack_pointColor_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).pointColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_pointColor_2(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.pointColor = (UnityEngine.Color)v;
            o = ins;
        }

        static StackObject* AssignFromStack_pointColor_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @pointColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.pointColor = @pointColor;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_selectColor_3(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).selectColor;
        }

        static StackObject* CopyToStack_selectColor_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).selectColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_selectColor_3(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.selectColor = (UnityEngine.Color)v;
            o = ins;
        }

        static StackObject* AssignFromStack_selectColor_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @selectColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.selectColor = @selectColor;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_inputString_4(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).inputString;
        }

        static StackObject* CopyToStack_inputString_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).inputString;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_inputString_4(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.inputString = (System.Int32)v;
            o = ins;
        }

        static StackObject* AssignFromStack_inputString_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @inputString = ptr_of_this_method->Value;
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.inputString = @inputString;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_tipString_5(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).tipString;
        }

        static StackObject* CopyToStack_tipString_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).tipString;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_tipString_5(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.tipString = (System.Int32)v;
            o = ins;
        }

        static StackObject* AssignFromStack_tipString_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @tipString = ptr_of_this_method->Value;
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.tipString = @tipString;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_CharacterLimit_6(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).CharacterLimit;
        }

        static StackObject* CopyToStack_CharacterLimit_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).CharacterLimit;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_CharacterLimit_6(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.CharacterLimit = (System.Int32)v;
            o = ins;
        }

        static StackObject* AssignFromStack_CharacterLimit_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @CharacterLimit = ptr_of_this_method->Value;
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.CharacterLimit = @CharacterLimit;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_ReadyOnly_7(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).ReadyOnly;
        }

        static StackObject* CopyToStack_ReadyOnly_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).ReadyOnly;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static void set_ReadyOnly_7(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.ReadyOnly = (System.Boolean)v;
            o = ins;
        }

        static StackObject* AssignFromStack_ReadyOnly_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Boolean @ReadyOnly = ptr_of_this_method->Value == 1;
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.ReadyOnly = @ReadyOnly;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_contentType_8(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).contentType;
        }

        static StackObject* CopyToStack_contentType_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).contentType;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_contentType_8(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.contentType = (huqiang.UIEvent.ContentType)v;
            o = ins;
        }

        static StackObject* AssignFromStack_contentType_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.ContentType @contentType = (huqiang.UIEvent.ContentType)typeof(huqiang.UIEvent.ContentType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.contentType = @contentType;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_lineType_9(ref object o)
        {
            return ((huqiang.UIEvent.TextInputData)o).lineType;
        }

        static StackObject* CopyToStack_lineType_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIEvent.TextInputData)o).lineType;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_lineType_9(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.lineType = (huqiang.UIEvent.LineType)v;
            o = ins;
        }

        static StackObject* AssignFromStack_lineType_9(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIEvent.LineType @lineType = (huqiang.UIEvent.LineType)typeof(huqiang.UIEvent.LineType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            huqiang.UIEvent.TextInputData ins =(huqiang.UIEvent.TextInputData)o;
            ins.lineType = @lineType;
            o = ins;
            return ptr_of_this_method;
        }

        static object get_Size_10(ref object o)
        {
            return huqiang.UIEvent.TextInputData.Size;
        }

        static StackObject* CopyToStack_Size_10(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.UIEvent.TextInputData.Size;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_Size_10(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData.Size = (System.Int32)v;
        }

        static StackObject* AssignFromStack_Size_10(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @Size = ptr_of_this_method->Value;
            huqiang.UIEvent.TextInputData.Size = @Size;
            return ptr_of_this_method;
        }

        static object get_ElementSize_11(ref object o)
        {
            return huqiang.UIEvent.TextInputData.ElementSize;
        }

        static StackObject* CopyToStack_ElementSize_11(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = huqiang.UIEvent.TextInputData.ElementSize;
            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_ElementSize_11(ref object o, object v)
        {
            huqiang.UIEvent.TextInputData.ElementSize = (System.Int32)v;
        }

        static StackObject* AssignFromStack_ElementSize_11(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Int32 @ElementSize = ptr_of_this_method->Value;
            huqiang.UIEvent.TextInputData.ElementSize = @ElementSize;
            return ptr_of_this_method;
        }


        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new huqiang.UIEvent.TextInputData();
            ins = (huqiang.UIEvent.TextInputData)o;
            return ins;
        }


    }
}
